/**
 * 图片组件
 */

import React, { Component } from 'react'

import cns from 'classnames'
import styles from './index.module.styl'

class BetterImage extends Component {
    render() {
        return (<img style={this.props.style} className={cns(styles.betterImage, this.props.className)} src={this.props.src} alt='img' />)
    }
}

BetterImage.defaultProps = {
    src: 'https://y.gtimg.cn/mediastyle/yqq/img/loading.gif'
}

export default BetterImage